<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="数据类别" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<link href="/css/dtree.css" rel="stylesheet" type="text/css">
<script src="/js/dtree.js"></script>
<script language="javascript">
	function doTreeNodeClick(id){
		parent.document.getElementById("mainFrame").src="/system/CodeRuleEdit.ihtm?id="+id;
	}
	function doInit(){
		var defaultId="${codeRuleList[0].id}";
		if(defaultId!=""){
			doTreeNodeClick(defaultId);
			d.openTo(defaultId,true,false);
		}
	}
</script>
</head>
<body oncontextmenu="return false" onLoad="doInit();" style="text-align:center" scroll="no">
			<div class="nav" id="scrollDiv" style="text-align:left;overflow-x:hidden;overflow-y:auto;width:190px;height:400px">
			  <h3 class="title">数据类别</h3>				
				<div class="nav-link nav-mail" style="width:100%">
					<script language="javascript">
						<!--
						var isOpen=false;
						var d = new dTree('d','/images/dtree');
						
						d.config.useCookies=false;
						d.config.useLines=false;
						d.config.useIcons=false;
						
						d.add(0,-1,'Root');
						
						<c:forEach var="item" items="${codeRuleList}">
							d.add(${item.id},0,'${item.title}',"javascript:doTreeNodeClick('${item.id}');",'','','',false);
						</c:forEach>
						
						document.write(d);
						d.closeAll();
						//-->
					</script>
				</div>
			</div>
</body>
</html>